package com.tanhua.server.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author liuyp
 * @date 2021/02/04
 */
@RestController
@RequestMapping("/rest")
public class RestTestController {

    @GetMapping
    public ResponseEntity getMethod(){
        return ResponseEntity.ok("get....");
    }

    @PostMapping
    public ResponseEntity postMethod(@RequestBody Map map){
        System.out.println(map);
        return ResponseEntity.ok("post....");
    }
}
